package pattern.interpreter;

public class Test {
    public static void main(String[] args) {
        // 只是从左到右计算
        System.out.println(new Cal("10 + 20 - 40 * 60").cal());
        System.out.println(new Cal("10 + 20 - 40 * 10").cal());
    }
}
